package com.zyh.question.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zyh.question.domain.ExamQuestion;
import org.apache.ibatis.annotations.Mapper;

/**
 * 选项表Mapper接口
 * 
 * @author zyh
 * @date 2025-02-20
 */
@Mapper
public interface ExamQuestionMapper extends BaseMapper<ExamQuestion>
{
    /**
     * 查询选项表
     * 
     * @param id 选项表主键
     * @return 选项表
     */
    public ExamQuestion selectExamQuestionById(Long id);

    /**
     * 查询选项表列表
     * 
     * @param examQuestion 选项表
     * @return 选项表集合
     */
    public List<ExamQuestion> selectExamQuestionList(ExamQuestion examQuestion);

    /**
     * 新增选项表
     * 
     * @param examQuestion 选项表
     * @return 结果
     */
    public int insertExamQuestion(ExamQuestion examQuestion);

    /**
     * 修改选项表
     * 
     * @param examQuestion 选项表
     * @return 结果
     */
    public int updateExamQuestion(ExamQuestion examQuestion);

    /**
     * 删除选项表
     * 
     * @param id 选项表主键
     * @return 结果
     */
    public int deleteExamQuestionById(Long id);

    /**
     * 批量删除选项表
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteExamQuestionByIds(Long[] ids);

    /**
     * 根据试卷id查询题目
     * @param id
     * @return
     */
    List<ExamQuestion> selectExamQuestionByPaperId(Long id);
}
